Add the python-opencc package
authorOsamu Aoki <osamu@debian.org>
Sat, 2 Nov 2013 03:18:52 +0000 (12:18 +0900)
committerOsamu Aoki <osamu@debian.org>
Sat, 2 Nov 2013 15:40:30 +0000 (00:40 +0900)
ship opencc.py module
build with python2

debian/changelog
debian/control
debian/python-opencc.install [new file with mode: 0644]
debian/rules

index 6b7734c18c27da8390d094f1899a598ae875d5c1..b3ca8d727bf56d1c9905dae483858f2e610fd557 100644 (file)
@@ -1,3 +1,10 @@
+opencc (0.4.3-2) UNRELEASED; urgency=low
+
+  * Add the python-opencc package to support the Python binding. 
+    Closes: #694993 
+
+ -- Osamu Aoki <osamu@debian.org>  Sat, 02 Nov 2013 12:17:51 +0900
+
 opencc (0.4.3-1) experimental; urgency=low
 
   * New upstream release.
index cc5b10594f4b8cb0729b2599c93bc8f5902c579e..17526bd4f2cb2f48470908dd0d80df6b5b4e0837 100644 (file)
@@ -5,7 +5,7 @@ Uploaders: LI Daobing <lidaobing@debian.org>,
            Asias He <asias@debian.org>,
            YunQiang Su <wzssyqa@gmail.com>,
            Osamu Aoki <osamu@debian.org>
-Build-Depends: cmake, debhelper (>= 9), dpkg-dev (>= 1.16.1.1~)
+Build-Depends: cmake, debhelper (>= 9), dpkg-dev (>= 1.16.1.1~), python-all
 Standards-Version: 3.9.4
 Section: libs
 Homepage: http://code.google.com/p/opencc
@@ -47,6 +47,16 @@ Description: simplified-traditional chinese conversion library - development
  .
  This package includes the development support files.
 
+Package: python-opencc
+Section: python
+Architecture: all
+Depends: libopencc1, ${misc:Depends}, ${python:Depends}
+Description: simplified-traditional chinese conversion library - Python support
+ opencc is a library for converting character between traditional chinese and
+ simplified chinese.
+ .
+ This package includes the Python binding.
+
 Package: libopencc-dbg
 Section: debug
 Priority: extra
diff --git a/debian/python-opencc.install b/debian/python-opencc.install
new file mode 100644 (file)
index 0000000..8afd143
--- /dev/null
@@ -0,0 +1 @@
+src/wrapper/python/opencc.py usr/share/pyshared
index 6c1acdb5b6a089f1c73164d93f75733f4c5984e9..36a5a8e52a40e85f2e89469966ab056414ce40f9 100755 (executable)
@@ -9,7 +9,7 @@ CFLAGS += $(CPPFLAGS)
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
-       dh  $@
+       dh $@ --with python2
 
 override_dh_auto_configure:
        dh_auto_configure -- \